.dl-button {
    --dl-button-font-weight: var(--dl-font-weight-primary);
    --dl-button-border-color: var(--dl-border-color);
    --dl-button-bg-color: var(--dl-fill-color-blank);
    --dl-button-text-color: var(--dl-text-color-regular);
    --dl-button-disabled-text-color: var(--dl-disabled-text-color);
    --dl-button-disabled-bg-color: var(--dl-fill-color-blank);
    --dl-button-disabled-border-color: var(--dl-border-color-light);
    --dl-button-divide-border-color: rgba(255, 255, 255, .5);
    --dl-button-hover-text-color: var(--dl-color-primary);
    --dl-button-hover-bg-color: var(--dl-color-primary-light-9);
    --dl-button-hover-border-color: var(--dl-color-primary-light-7);
    --dl-button-active-text-color: var(--dl-button-hover-text-color);
    --dl-button-active-border-color: var(--dl-color-primary);
    --dl-button-active-bg-color: var(--dl-button-hover-bg-color);
    --dl-button-outline-color: var(--dl-color-primary-light-5);
    --dl-button-active-color: var(--dl-text-color-primary);
}

.dl-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    height: 32px;
    white-space: nowrap;
    cursor: pointer;
    color: var(--dl-button-text-color);
    text-align: center;
    box-sizing: border-box;
    outline: none;
    transition: .1s;
    font-weight: var(--dl-button-font-weight);
    -webkit-user-sdlect: none;
    user-sdlect: none;
    vertical-align: middle;
    -webkit-appearance: none;
    background-color: var(--dl-button-bg-color);
    border: var(--dl-border);
    border-color: var(--dl-button-border-color);
    padding: 8px 15px;
    font-size: var(--dl-font-size-base);
    border-radius: var(--dl-border-radius-base);

    /* 不要加;号 坑*/
    &:focus,
    &:hover {
        color: var(--dl-button-hover-text-color);
        border-color: var(--dl-button-hover-border-color);
        background-color: var(--dl-button-hover-bg-color);
        outline: none;
    }

    &:active {
        color: var(--dl-button-active-text-color);
        border-color: var(--dl-button-active-border-color);
        background-color: var(--dl-button-active-bg-color);
        outline: none;
    }

    /* plain */
    &.is-plain {
        --dl-button-hover-text-color: var(--dl-color-primary);
        --dl-button-hover-bg-color: var(--dl-fill-color-blank);
        --dl-button-hover-border-color: var(--dl-color-primary);
    }

    /* round */
    &.is-round{
        border-radius: var(--dl-border-radius-round);
    }

    /* circle */
    &.is-circle{
        border-radius: 50%;
        padding: 8px;
    }

    /*disabled*/
    &.is-disabled,&.is-disabled:hover,&.is-disabled:focus,
    &[disabled],&[disabled]:hover,&[disabled]:focus{
        color: var(--dl-button-disabled-text-color);
        cursor: not-allowed;
        background-color: var(--dl-button-disabled-bg-color);
        border-color: var(--dl-button-disabled-border-color);
    }

    [class*=dl-icon] + span {
        margin-left: 5px;
    }

    @each $val in primary, success, warning, info, danger {
        &.dl-button--$(val) {
            --dl-button-border-color: var(--dl-color-$(val));
            --dl-button-bg-color: var(--dl-color-$(val));
            --dl-button-text-color: var(--dl-color-white);
            --dl-button-disabled-text-color: var(--dl-color-white);
            --dl-button-disabled-bg-color: var(--dl-color-$(val)-light-5);
            --dl-button-disabled-border-color: var(--dl-color-$(val)-light-3);
            --dl-button-hover-text-color: var(--dl-color-white);
            --dl-button-hover-bg-color: var(--dl-color-$(val)-light-3);
            --dl-button-hover-border-color: var(--dl-color-$(val)-light-3);
            --dl-button-active-text-color: var(--dl-color-white);
            --dl-button-active-border-color: var(--dl-color-$(val)-dark-2);
            --dl-button-active-bg-color: var(--dl-color-$(val)-dark-2);
            --dl-button-active-color: var(--dl-color-$(val)-dark-2);
        }
        &.dl-button--$(val).is-plain {
            --dl-button-text-color: var(--dl-color-$(val));
            --dl-button-bg-color: var(--dl-color-$(val)-light-9);
            --dl-button-border-color: var(--dl-color-$(val)-light-5);
            --dl-button-hover-text-color: var(--dl-color-white);
            --dl-button-hover-bg-color: var(--dl-color-$(val));
            --dl-button-hover-border-color: var(--dl-color-$(val));
            --dl-button-active-text-color: var(--dl-color-white);
        }
        &.dl-button--large {
            --dl-button-size: 40px;
            height: var(--dl-button-size);
            padding: 12px 19px;
            font-size: var(--dl-font-size-base);
            border-radius: var(--dl-border-radius-base);
        }
        &.dl-button--small {
            --dl-button-size: 24px;
            height: var(--dl-button-size);
            padding: 5px 11px;
            font-size: 12px;
            border-radius: calc(var(--dl-border-radius-base) - 1px);
        }
       
    }
}


